﻿<%@ Control Language="C#" ClassName="Types_selecter" %>
<%@ Register Src="../module/Types-List.ascx" TagName="Types" TagPrefix="inal" %>

<script runat="server">
    private int itemtype = 0;
    private string keep_url;
    private string keepparameter="cid";
    /// <summary>
    /// 对象类型ID
    /// </summary>
    public int Type
    {
        get { return itemtype; }
        set { itemtype = value; }
    }
    private string item_name = "";
    /// <summary>
    /// 框架显示昵称
    /// </summary>
    public string Item_Name
    {
        get { return item_name; }
        set { item_name = value; }
    }
    /// <summary>
    /// 保留URL
    /// </summary>
    public string KeepUrl
    {
        get { return keep_url; }
        set { keep_url = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Types1.Type = Type;
        Types1.KeepUrl = KeepUrl;
        Types1.KeepParameter = KeepParameter;
    }
    /// <summary>
    /// 保留参数
    /// </summary>
    public string KeepParameter
    {
        get { return keepparameter; }
        set { keepparameter = value; }
    }
</script>

<div id="Column_Area<%=Type %>" class="select_area" >
    <h3><span><%=Item_Name %></span></h3>
    <div class="root_column"><inal:Types ID="Types1" runat="server" Root_Id="-1" /></div>
    <div class="bd_column"></div>
    <button class="select_btn"><%=Lang.Show("Select") %></button>
    <div class="select_column"><font><%=Item_Name %> :</font>  <span class="root" title=""></span> <span class="bd" title=""></span> <em><%=Lang.Show("RSelect") %></em></div>
</div>

